import { createSSRApp } from 'vue';
import App from './App.vue';
import { setupStore } from '@/store';
import '@/assets/style/main.scss';
import Vconsole from 'vconsole';

const vConsole: any = new Vconsole();

export function createApp() {
  const app = createSSRApp(App);
  app.use(vConsole);
  // Configure store
  setupStore(app);

  return {
    app,
  };
}
